import { defineStore } from "pinia";
import { ref, reactive } from "vue"
export const firstChainListStore = defineStore("firstChainListStoreId", () => {
    const detailData = ref([
        {
            type: "text",
            prop: "channelKey",
            name: "渠道Key",
            value: null
        },
    ])
    const tableProp = reactive(
        {
            name: "supplierList",
            propsList: [
                {
                    prop: 'productCode',
                    label: '产品编码',
                    type: 'normal',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    prop: 'productName',
                    label: '产品名称',
                    type: 'normal',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    prop: 'isp',
                    label: '运营商',
                    type: 'normal',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    prop: 'whiteListProvince',
                    label: '白名单省',
                    type: 'custom',
                    slotName:'province',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    prop: 'whiteListCity',
                    label: '白名单市',
                    type: 'custom',
                    slotName:'city',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    type: 'normal',
                    prop: 'relationProductCount',
                    label: '关联产品数',
                    minWidth: '150px',
                    hidden: true,
                },
                {
                    prop: 'orderTotalQuota',
                    label: '限制单量数',
                    type: 'normal',
                    minWidth: '150px',
                    hidden: true,
                },
      
                {
                    type: 'handle',
                    label: '操作',
                    width: '150px',
                    btnType: ' link',
                    slotName: 'handle',
                    hidden: true,
                }
            ]
        })

    return {
        detailData, tableProp
    }
})